package commonClasses;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;

public class GenerateTermVariations {
	public static void main(String args[]) throws IOException{
		PrintStream ps = new PrintStream("J:\\BC3_IMT_Training\\Research Paper Terms.txt");
		FileReader fr = new FileReader("J:\\BC3_IMT_Training\\my terms.txt");
		BufferedReader fbr = new BufferedReader(fr);
		String str= fbr.readLine();
		while(str!=null){
			ps.println(str);
			String s2 = str.toUpperCase();
			ps.println(s2);
			
			String[] s = str.split(" ");
			int l = s.length;
			if(l==1){
				if(!str.endsWith("s")){
					String s4 = str+"s";
					ps.println(s4);
					ps.println(s4+":");
					ps.println(s4.toUpperCase());
					ps.println(s4.toUpperCase()+":");
				}
			}
			else if(l==2){
				String s4 = s[0]+" "+s[1]+"s";
				String s5 = s[0]+s[1]+"s";
				ps.println(s4);
				ps.println(s4.toUpperCase());
				ps.println(s5);
				ps.println(s5.toUpperCase());
			}
			else if(l==3){
				String s4 = s[0]+"s "+s[1]+" "+s[2]+"s";
				String s5 = s[0]+"s"+s[1]+" "+s[2]+"s";
				String s6 = s[0]+"s "+s[1]+s[2]+"s";
				String s7 = s[0]+"s "+s[1]+" "+s[2];
				String s8 = s[0]+"s "+s[1]+s[2];
				ps.println(s4);
				ps.println(s4.toUpperCase());
				ps.println(s5);
				ps.println(s5.toUpperCase());
				ps.println(s6);
				ps.println(s6.toUpperCase());
				ps.println(s7);
				ps.println(s7.toUpperCase());
				ps.println(s8);
				ps.println(s8.toUpperCase());
			}
			else{
				String s4 = s[0]+"s "+s[1]+" "+s[2]+" "+s[3]+"s";
				ps.println(s4);
				ps.println(s4.toUpperCase());
			}
			
			str=fbr.readLine();
		}
	}

}
